<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Nfc Interactor: NdefNfcSpRecord::NdefNfcSizeRecord Class Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  <td id="projectlogo"><img alt="Logo" src="nfcinteractor80.png"/></td>
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Nfc Interactor
   &#160;<span id="projectnumber">2.1.0</span>
   </div>
   <div id="projectbrief">Shows all information about NFC tags available through Qt Mobility APIs. Includes reusable convenience classes for handling additional tag types: Smart Poster, Image and vCard.</div>
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="class_ndef_nfc_sp_record.html">NdefNfcSpRecord</a>      </li>
      <li class="navelem"><a class="el" href="class_ndef_nfc_sp_record_1_1_ndef_nfc_size_record.html">NdefNfcSizeRecord</a>      </li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">NdefNfcSpRecord::NdefNfcSizeRecord Class Reference</div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="NdefNfcSpRecord::NdefNfcSizeRecord" -->
<p>The Size Record contains a four-byte, 32-bit, unsigned integer, which contains the size of object that the URI field refers to.  
 <a href="class_ndef_nfc_sp_record_1_1_ndef_nfc_size_record.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="ndefnfcsprecord_8h_source.html">ndefnfcsprecord.h</a>&gt;</code></p>

<p><a href="class_ndef_nfc_sp_record_1_1_ndef_nfc_size_record-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="adcde0d175e0099e080f51215a2c7e068"></a><!-- doxytag: member="NdefNfcSpRecord::NdefNfcSizeRecord::Q_DECLARE_NDEF_RECORD" ref="adcde0d175e0099e080f51215a2c7e068" args="(NdefNfcSizeRecord, QNdefRecord::NfcRtd,&quot;s&quot;, QByteArray(4, char(0)))" -->
&#160;</td><td class="memItemRight" valign="bottom"><b>Q_DECLARE_NDEF_RECORD</b> (<a class="el" href="class_ndef_nfc_sp_record_1_1_ndef_nfc_size_record.html">NdefNfcSizeRecord</a>, QNdefRecord::NfcRtd,&quot;s&quot;, QByteArray(4, char(0)))</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">quint32&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ndef_nfc_sp_record_1_1_ndef_nfc_size_record.html#ae29114425f9ba2ab7a720e76133e3eb9">size</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Fetch the size of the content linked to by the Smart Poster.  <a href="#ae29114425f9ba2ab7a720e76133e3eb9"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ndef_nfc_sp_record_1_1_ndef_nfc_size_record.html#a0a67160168c3a8b3607801c208a23419">setSize</a> (quint32 size)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the size record of the Smart Poster.  <a href="#a0a67160168c3a8b3607801c208a23419"></a><br/></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>The Size Record contains a four-byte, 32-bit, unsigned integer, which contains the size of object that the URI field refers to. </p>
<p>Note that in practice this is limited to URLs (<a href="http://,">http://,</a> <a href="ftp://">ftp://</a> and similar). The Size Record's Local Type Name is "s".</p>
<p>The size is expressed in network byte order (most significant byte first). For example, if Byte 0 contains 0x12, Byte 1 contains 0x34, Byte 2 contains 0x56, and Byte 3 0x78, the size of the referred object is 0x12345678 bytes.</p>
<p>The size record MAY be used by the device to determine whether it can accommodate the referenced file or not. For example, an NFC tag could trigger the download of an application to a cell phone. Using a combination of the Type Record and the Size Record, the mobile phone could determine whether it can accommodate such a program or not.</p>
<p>The Size Record is for informational purposes only. Since the object size in the network may vary (for example, due to updates), this value should be used as a guideline only.</p>
<p>The Size Record is optional to support.</p>
<p>(Information taken from NFC Forum Smart Poster NDEF record specifications) </p>
</div><hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a0a67160168c3a8b3607801c208a23419"></a><!-- doxytag: member="NdefNfcSpRecord::NdefNfcSizeRecord::setSize" ref="a0a67160168c3a8b3607801c208a23419" args="(quint32 size)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void NdefNfcSpRecord::NdefNfcSizeRecord::setSize </td>
          <td>(</td>
          <td class="paramtype">quint32&#160;</td>
          <td class="paramname"><em>size</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Set the size record of the Smart Poster. </p>
<p>See the class documentation for more details. </p>

</div>
</div>
<a class="anchor" id="ae29114425f9ba2ab7a720e76133e3eb9"></a><!-- doxytag: member="NdefNfcSpRecord::NdefNfcSizeRecord::size" ref="ae29114425f9ba2ab7a720e76133e3eb9" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">quint32 NdefNfcSpRecord::NdefNfcSizeRecord::size </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Fetch the size of the content linked to by the Smart Poster. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>the value as stored in the Smart Poster record. </dd></dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="ndefnfcsprecord_8h_source.html">ndefnfcsprecord.h</a></li>
<li>ndefnfcsprecord.cpp</li>
</ul>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Properties</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Generated on Mon Mar 12 2012 13:32:49 for Nfc Interactor by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.5.1
</small></address>

</body>
</html>
